import datetime


def input_date():
    inputdate = input("请输入开始日期,(20081001):")
    datestr = inputdate[0:4] + '-' + inputdate[4:6] + '-' + inputdate[6:]
    dt = datetime.datetime.strptime(datestr, '%Y-%m-%d')
    return dt


if __name__ == '__main__':
    # print(input_date())
    date = input_date()
    diff_num = eval(input('请输入天数:'))
    date = date + datetime.timedelta(days=diff_num)
    print(date)
